package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2023-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_storage_show_rule")
public class StorageShowRuleDo extends Model<StorageShowRuleDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("begin")
    private Integer begin;

    @TableField("end")
    private Integer end;

    @TableField("color")
    private String color;

    @TableField("storage_id")
    private Long storageId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_by")
    private Long createBy;

    @TableField("create_time")
    private Date createTime;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
